const state = {
  dictData: {}
}

const mutations = {
  SET_DICTDATA: (state, obj) => {
    const { key, data } = obj
    state.dictData[key] = data
  }
}

const actions = {
}

const getters = {
  dictDatas: state => keys => {
    return state.dictData[keys]
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
